package com.tensai.study.java.newconcept.typereactiveprogram.reactor.flux.create.statics.interval;

import java.util.concurrent.atomic.AtomicLong;

/**
 *
 * @author Tensai
 */
public enum CountEnum {

	/**
	 * 单例
	 */
	INST;

	private final AtomicLong atomicLong = new AtomicLong(0);

	public long add(){
		return atomicLong.incrementAndGet();
	}

	public Long get(){
		return atomicLong.get();
	}
}
